/*
 *校验按钮权限
 *
 *
 * */
function checkAuth(){
   ///具体的验证内容；
	var roleAuth = $(".frame-role-auth").attr("roleAuth");
	var noRule = false;
    var strs= new Array(); //定义一数组
    if(isNull(roleAuth)){
        noRule = true;
	}else{
        strs=roleAuth.split(",");
	}
	$(".frame-authcheck").each(function(i){
 		var menuId =  $(".frame-authcheck").eq(i).attr("functionkey");
		if(menuId ==  undefined )
		{
			return;
		}
		if(noRule){
            $(this).hide();
            $(".frame-authcheck").eq(i).attr("style","display: none");
		}else{
			for(var kutton in strs){
				if(menuId == strs[kutton]){
                    $(this).show();
				}
			}
		}
	})
}

$(function () {
    checkAuth();
});

